#include<stdio.h>
#include<malloc.h>
#define MaxSize 100
typedef char ElemType;
typedef struct
{
    ElemType data[MaxSize];
    int top;
}
SpStack;
void InitStack(SpStack*&s)
{
    s=(SpStack*)malloc(sizeof(SpStack));
    S->top=-1;
}
void DestroyStack(SpStack*&s)
{
    free(s);
}
bool StackEmpty(SpStack*s)
{
    return(s->top==-1);
}
bool Fush(SpStack*&s,ElemType e)
{
    if(s->top==MaxSize-1)
    return false;
    s->top++
    s->data[s->top];
    return ture;
}
bool Pop(SpStack*&s,ElemType &e)
{
    if(s->top==-1)
    return false;
    e=s-data[s->top];
    s->top--
    return ture;
}
bool GetTop(SpStack*s,ElemType &e)
{
    if(s->top==-1)
    return false;
    e=s->data[s->top];
    return true;
}